import request from '@/utils/request'

// 查询单张机制袋列表
export function listBagMaking(query) {
  return request({
    url: '/mes/fb/bagMaking/list',
    method: 'get',
    params: query
  })
}

// 查询单张机制袋详细
export function getBagMaking(recordId) {
  return request({
    url: '/mes/fb/bagMaking/' + recordId,
    method: 'get'
  })
}

// 新增单张机制袋
export function addBagMaking(data) {
  return request({
    url: '/mes/fb/bagMaking',
    method: 'post',
    data: data
  })
}

// 修改单张机制袋
export function updateBagMaking(data) {
  return request({
    url: '/mes/fb/bagMaking',
    method: 'put',
    data: data
  })
}

// 删除单张机制袋
export function delBagMaking(recordId) {
  return request({
    url: '/mes/fb/bagMaking/' + recordId,
    method: 'delete'
  })
}
